#! /bin/sh
### generate index file
echo "[*] generate index file"
src=`pwd`
result=cscope.files
find $src -name "*\.[chxsS]" -print >$result
cat $result | xargs ctags 
echo "[*] build ctags database success"
cscope -bqk -i $result
echo "[*] build cscope database success"
echo "[*] finish"
